package com.pulse.base.mapper;

import com.pulse.base.domain.CircuitMeasureEvent;

import java.util.List;

/**
 * 曲线分析结果事件Mapper接口
 *
 * @author 陆帅
 * @date 2024-07-17
 */
public interface CircuitMeasureEventMapper {


    /**
     * 查询列表
     * @param circuitMeasureEvent
     * @return
     */
    List<CircuitMeasureEvent> selectCircuitMeasureEventList(CircuitMeasureEvent circuitMeasureEvent);

    /**
     * 根据id查询
     * @param eventId
     * @return
     */
    CircuitMeasureEvent selectCircuitMeasureEventByEventId(Long eventId);


    /**
     * 根据曲线id查询
     * @param measureId
     * @return
     */
    List<CircuitMeasureEvent> selectCircuitMeasureEventByMeasureId(Long measureId);

    /**
     * 新增
     * @param circuitMeasureEvent
     * @return
     */
    int insertCircuitMeasureEvent(CircuitMeasureEvent circuitMeasureEvent);

    /**
     * 修改
     * @param circuitMeasureEvent
     * @return
     */
    int updateCircuitMeasureEvent(CircuitMeasureEvent circuitMeasureEvent);

    /**
     * 根据id删除
     * @param eventId
     * @return
     */
    int deleteCircuitMeasureEventByEventId(Long eventId);

    /**
     * 根据id列表删除
     * @param eventIds
     * @return
     */
    int deleteCircuitMeasureEventByEventIds(Long[] eventIds);

    /**
     * 根据曲线id删除
     * @param measureId
     * @return
     */
    int deleteCircuitMeasureEventByMeasureId(Long measureId);


    /**
     * 根据measureId列表删除
     * @param measureIds
     * @return
     */
    int deleteCircuitMeasureEventByMeasureIds(Long[] measureIds);
}
